package cn.fastoo.common.entity.system;


import cn.fastoo.common.sampleframe.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;


/**
 * 权限.
 * 
 * @author LP
 */ 
@Table(name = "admin_system_permission")
public class Permission extends BaseEntity {
	/** 超级权限(*.*)数据库id */
	public static Long SUPER_ID = 1L;
	/** 操作权限 */
	public static Integer TYPE_OPERATE = 0;
	/** 资源权限 */
	public static Integer TYPE_RESOURCE = 1;
	/** 城市权限 */
	public static Integer TYPE_CITY = 2;


	/** 权限标识：必须为英文，用于系统识别，格式：XX:XX:XX */
	@Column(name="permission")
	private String permission;
	/** 权限名称：建议为中文，用于用户识别 */
	@Column(name="name")
	private String name;
	/** 描述 */
	@Column(name="description")
	private String description;
	@Column
	private Long adminSystemMenuId;


	public Permission() {

	}

	public Permission(Long id) {
		this.setId(id);
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public Long getAdminSystemMenuId() {
		return adminSystemMenuId;
	}

	public void setAdminSystemMenuId(Long adminSystemMenuId) {
		this.adminSystemMenuId = adminSystemMenuId;
	}
}